<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="true" namespace="ThorMVR.ClassModels" assembly="ThorMVR">
  <class name="ThorMVR.ClassModels.GeralEmpresasIe,ThorMVR" table="geral_empresas_inscEst" lazy="true">

    <!-- Primary Key(s) -->
    <id name="_idregistro" column="id_registro" type="Int32">
      <generator class="native"/>
    </id>
      <!-- One-To-Many relations -->
      <many-to-one class="GeralEmpresas" name="GeralEmpresa" column="id_empresa" />
      <property column="UF" type="String" name="_uf" length="2" />
      <property column="InscricaoEstadual" type="String" name="_inscricaoestadual" length="20" />
  </class>
</hibernate-mapping>
